const crypto = require('crypto');

const password = '43ds';

const test = crypto
    .createHash('sha1', 'dwdwd')
    .update(password)
    .digest('hex')

console.log(test);

// const test = crypto
//     .createHash('sha256', password)
//     .update('i love you')
//     .digest('hex')
// console.log(test);